//
//  Step2Select.m
//  Gunz
//
//  Created by Joggy on 16/4/15.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import "Step2Select.h"
#import "GZConst.h"

@implementation Step2Select

-(instancetype)initWithTitle:(NSString *)title pointOne:(NSString *)one pointTwo:(NSString *)two {
    self = [super initWithFrame:CGRectMake(0, 0, [GZConst getScreenWidth], 55)];
    UILabel *titleLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 128*proportion, 17)];
    titleLab.textColor = TEXT_TITLE_COLOR;
    titleLab.font = [UIFont systemFontOfSize:14];
    titleLab.textAlignment = NSTextAlignmentRight;
    titleLab.text = title;
    [self addSubview:titleLab];
    _pointOne = [[PointButton alloc] init];
    _pointOne.layer.position = CGPointMake(148*proportion, titleLab.layer.position.y);
    [self addSubview:_pointOne];
    UILabel *labOne = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 175, 17)];
    labOne.layer.position = CGPointMake(_pointOne.layer.position.x + 98, _pointOne.layer.position.y);
    labOne.textColor = TEXT_TITLE_COLOR;
    labOne.font = [UIFont systemFontOfSize:17];
    labOne.text = one;
    [self addSubview:labOne];
    _pointTwo = [[PointButton alloc] init];
    _pointTwo.layer.position = CGPointMake(148*proportion, titleLab.layer.position.y + 37);
    [self addSubview:_pointTwo];
    UILabel *labTwo = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 175, 17)];
    labTwo.layer.position = CGPointMake(_pointTwo.layer.position.x + 98, _pointTwo.layer.position.y);
    labTwo.textColor = TEXT_TITLE_COLOR;
    labTwo.font = [UIFont systemFontOfSize:17];
    labTwo.text = two;
    [self addSubview:labTwo];
    return self;
}

@end
